home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 8
/
Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso
/
Aminet
/
dev
/
c
/
cmacros.lha
/
macrotest.c
< prev
Wrap
C/C++ Source or Header
|
1995-07-03
|
578b
|
25 lines
#include "cmacros.h"
#include <stdio.h>
void main(void)
{
char a=5,b=14,c=0;
printf("a : %3d\nb : %3d\n",a,b);
printf("BitSet(a,4) : %3d\n",BitSet(a,4));
printf("BitClr(b,1) : %3d\n",BitClr(b,1));
printf("BitTest(a,0) : %3d\n",BitTest(a,0));
printf("BitToggle(a,0) : %3d\n",BitToggle(a,0));
Swap(a,b,c);
printf("Swap(a,b,c) : %3d %3d\n",a,b);
Swap(a,b,c);
printf("RangeX(b,-5,5) : %3d\n",RangeX(b,-5,5));
printf("RangeI(b,-5,5) : %3d\n",RangeI(b,-5,5));
printf("Odd(a) : %3d\n",Odd(a));
printf("Even(a) : %3d\n",Even(a));
}